package com.test.mchelepesa.util_rice.data.bean

import android.content.Context
import com.google.gson.Gson
import com.test.mchelepesa.util_rice.data.util.NetworkUtil_rice
import com.test.mchelepesa.util_rice.data.util.gzipString

class WifiInfo_rice(val context: Context) {

    fun fetch(): String? {
        return try {
            val data = hashMapOf<String, Any>().apply {
                put("currentWifi", NetworkUtil_rice.gCurrentWifi(context))
                put("configuredWifi", "")
                put("wifiCount", "")
            }
            Gson().toJson(data).trim().gzipString()

        } catch (e: Exception) {
            null
        }
    }
}